package com.itheima.mapper;

import com.itheima.pojo.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrderMapper {
    public void add(Order order);
    public List<Order> findByCondition(Order order);

    /**
     * 根据id查询相关订单信息
     * @param id
     * @return
     */
    public Map findById4Detail(Integer id);
}
